const Koa = require('koa');
const bodyParser = require('koa-bodyparser');
const app = new Koa();
const imageRoute = require('./routes/imageRoute');
const songRoute = require('./routes/songRoute');

app.use(bodyParser());

app
    .use(imageRoute.routes(),imageRoute.allowedMethods())
    .use(songRoute.routes(),songRoute.allowedMethods());


app.listen(3000, () => {
    console.log(`App is running on port 3000`)
});